define(function(require, exports, module) {

    var axios = require('lib/axios/index.js');
    var layer = require('components/layer/index.js');

   window.vueApp = new Vue({
        el: '#app',
        data: {
            tableList: [

            ],
            form: {
                subTitle: '',
                Title: '',
                DataFlag: ''
            },
            enums: {
                DataFlag: []
            }
        },
        mounted: function() {

            var thisVue = this;
            thisVue.tableSearch();


        },
        methods: {

            tableSearch: function() {
                var thisVue = this;
                var tools = require('lib/tools.js');
                var queryString = tools.getQueryString.call(thisVue.form);


                var url = baseSiteUrl + "Common/Query?query_key=PageConfigView";
                if (queryString != "") {
                    url = url + "?" + queryString;
                }

                axios.get(url)
                    .then(function(response) {
                        thisVue.tableList = response.data.ResultList;
                        console.log(response.data);
                        console.log(response.status);
                        console.log(response.statusText);
                        console.log(response.headers);
                        console.log(response.config);
                    });
            },
            handleEditClick: function (id) {
                var url = 'PageConfigEdit.html?id=' + id;
                layer.open({
                    type: 2,
                    area: ["1150px", '90%'],
                    content: url
                });
             
            }

        }

    });

});